Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verifier Optimization #9

Merged
merged 9 commits into from
Dec 7, 2023
Merged

Verifier Optimization #9

merged 9 commits into from
Dec 7, 2023

Conversation

jkwoods
Copy link

@jkwoods jkwoods commented Nov 9, 2023

Optimization for IPA verifier from Bulletproofs Section 3.1 - delays exponentiations until they can be combined, batched inversions (Microsoft's Spartan used as code reference)

Two notes:

  1. This optimization deals with a section of code that both the Prover and Verifier run (see Hyrax fig 7, step 4). Not sure if I should implement the optimization for the prover as well? (Spartan does not optimize it's prover.)

  2. I do batch inversions using code ported from Spartan's batch_inversion method. This method uses zeroize to clear a scratch buffer (here). I'm not sure how to port this feature, as Nova uses the pasta curves, without a wrapper around them (unlike how Spartan's wrapper around Scalars), so I can't implement Zeroize for the field elements. There's probably an elegant solution to this?

@sga001 sga001 merged commit 1a15695 into sga001:main Dec 7, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants